package com.nbsaas.boot.tenant.rest.convert;

import com.nbsaas.boot.tenant.data.entity.Database;
import com.nbsaas.boot.tenant.api.domain.simple.DatabaseSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 数据源管理-列表对象转换器
*/

public class DatabaseSimpleConvert implements Converter<DatabaseSimple, Database> {




@Override
public DatabaseSimple convert(Database source) {
    DatabaseSimple result = new DatabaseSimple();

                result.setPassword(source.getPassword());
                result.setDomain(source.getDomain());
                result.setDriverClassName(source.getDriverClassName());
                result.setId(source.getId());
                result.setUrl(source.getUrl());
                result.setUsername(source.getUsername());


    return result;
}

}